<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>业务功能首页</title>
<link rel="stylesheet" href="<%=path%>/css/bootstrap.min.css" />
<link rel="stylesheet" href="<%=path%>/css/easyui.css" />
<link rel="stylesheet" href="<%=path%>/css/icon.css" />
<style>
body {
	background-color: #f1f1f1;
}

.lightBg {
	background-color: #fff;
	padding: 5px 20px;
}

ul {
	list-style-type: none;
}

li {
	display: inline-block;
}

li {
	margin: 10px 0;
}

input.labelauty+label {
	font: 12px "Microsoft Yahei";
}
</style>
</head>
<body>

	<div class="container">
		<div class="row lightBg">
			<!--标题-->
			<h2 class="pull-left">
				<img src="<%=path%>/images/logo.png" style="width: 80px;">
				智游科技项目申报系统
			</h2>
			<p class="pull-right" style="margin-top: 20px;">
				欢迎您，项目负责人 ${user.UName }&nbsp;|&nbsp;<a href="">站内消息(2)</a>&nbsp;<a
					href="<%=path%>/news/toIndex2">退出</a>
			</p>
		</div>
		<div class="row" style="margin-top: 20px;">
			<!--页面一二级菜单部分，公用的-->
			<div class="easyui-tabs" style="">
				<div title="首页" style="padding:10px">首页暂无设计</div>
				<div title="申报管理" style="padding:10px">
					<div class="easyui-panel" style="padding:5px;">
						<a href="<%=path %>/report?uid=${user.UId}"
							class="easyui-linkbutton" data-options="plain:true">填写申请书</a> <a
							href="#" class="easyui-linkbutton" data-options="plain:true">基本信息</a>
						<a href="#" class="easyui-linkbutton" data-options="plain:true"
							style="background:  #B0E0E6;">产品情况</a>
					</div>
				</div>
				<div title="项目管理" style="padding:10px">
					<div class="easyui-panel" style="padding:5px;">
						<a href=<%=path%> /toprincipal" class="easyui-linkbutton"
							data-options="plain:true">查看项目</a>
					</div>
				</div>
				<div title="拨款管理" style="padding:10px">此功能暂不实现</div>
				<div title="系统管理" style="padding:10px" data-options="plain:true">
					<div class="easyui-panel" style="padding:5px;">
						<a href="<%=path%>/user/my?id=${user.UId}"
							class="easyui-linkbutton" data-options="plain:true">个人信息维护</a> <a
							href="<%=path%>/user/personal?id=${user.UId}"
							class="easyui-linkbutton" data-options="plain:true">个人账号管理</a>
					</div>
				</div>
			</div>
		</div>

		<!--页面实际数据管理部分-->
		<div class="row" style="margin-top: 20px;">
			<div style="background-color: #fff;padding: 20px;">
				<img alt="" src="<%=path%>/images/9-x-office-document.png"
					style="height: 60px; width:60px "><span
					style="font-size: 24px;vertical-align: middle;"> 项目基本信息</span><br>
				<br>
				<center>
					<c:if test="${pdt==null }">
						<form action="<%=path%>/proDetail/add">
					</c:if>
					<c:if test="${pdt!=null }">
						<form action="<%=path%>/proDetail/update">
					</c:if>
					<table border="1px" cellpadding="3px"
						style="width: 1083px;height: 512px;font-size: 16px; text-align: center;">
						<tr>
							<td style="width: 10%">产品名称:</td>
							<td><input type="text" name="DName" required="required"
								value="${pdt.DName }"></td>
							<td>产品型号:</td>
							<td><input type="text" name="DType" required="required"
								value="${pdt.DType }"></td>
						</tr>
						<tr>
							<td>研发开始时间:</td>
							<td><input type="text" name="DStarttime" required="required"
								value="<fmt:formatDate value="${pdt.DStarttime }" pattern="yyyy/MM/dd"/>" />
							</td>
							<td>研发上市时间:</td>
							<td><input type="text" name="DOnline" required="required"
								value="<fmt:formatDate value="${pdt.DOnline }" pattern="yyyy/MM/dd"/>" />
							</td>
						</tr>
						<tr>
							<td>商标状况:</td>
							<td colspan="3">
								<ul class="dowebok">
									<li><input type="radio" name="DStatus" value="注册商标">注册商标</li>
									<li><input type="radio" name="DStatus" value="未注册商标">未注册商标</li>
									<li><input type="radio" name="DStatus" value="驰名商标">驰名商标</li>
									<li><input type="radio" name="DStatus" value="省级商标">省级商标</li>
									<li><input type="radio" name="DStatus" value="市级商标">市级商标</li>
									<li><input type="radio" name="DStatus" value="名牌产品">名牌产品</li>
								</ul>
							</td>
						</tr>
						<tr>
							<td>累计投入:</td>
							<td><input type="text" name="DTotalmoney"
								required="required" value="${pdt.DTotalmoney }"></td>
							<td>单位成本:</td>
							<td><input type="text" name="DUnitcost" required="required"
								value="${pdt.DUnitcost }"></td>
						</tr>
						<tr>
							<td colspan="4">产品介绍</td>
						</tr>
						<tr>
							<td colspan="4"><textarea name="DDesc" required="required"
									style="width: 851px; height: 135px">${pdt.DDesc }</textarea></td>
						</tr>
					</table>
					<hr>
					<div style="text-align: left">
						<input type="submit" value="保存"><input type="button"
							value="返回">
					</div>
					<c:if test="${pdt==null }">
						<input type="hidden" name="proId" value="${proId }">
					</c:if>
					<c:if test="${pdt!=null }">
						<input type="hidden" name="uid" value="${user.UId }">
						<input type="hidden" name="did" value="${pdt.DId }">
					</c:if>
					</form>
				</center>
			</div>
		</div>


		<script src="<%=path%>/js/jquery1.12.4.min.js">
		</script>
		<script src="<%=path%>/js/bootstrap.min.js"></script>
		<script src="<%=path%>/js/jquery.easyui.min.js"></script>
		<script type="text/javascript">
		
			$(function() {
				$('.easyui-tabs').tabs('select', '申报管理');
		
				$(':input').labelauty();
			});
		</script>
</body>
</html>